package animation;

import java.util.Vector;

import javax.microedition.lcdui.Graphics;

import main.GameCanvas;
import model.Position;

public abstract class Effect {
	protected Vector m_arrPoint = new Vector();
	
	public Position m_posCenterEffect = new Position();
	protected int m_iGameTick;
	
	public void startEffect(int x, int y){
		m_posCenterEffect.x = x;
		m_posCenterEffect.y = y;
		m_iGameTick = 0;
		
		GameCanvas.m_arrEffect.addElement(this);
	}
	
	public abstract void update();
	public abstract void paint(Graphics g);
}